package admin

import (
	"context"
	"grpc.getaway.adminspro.padmins.com/internal/rpc/module/admin/adminLogic"
	pbAdmin "grpc.getaway.adminspro.padmins.com/pkg/proto/admin"
)

func (rpc *admin) AdminList(ctx context.Context, pb *pbAdmin.AdminListReq) (*pbAdmin.AdminListResp, error) {
	list := adminLogic.List()
	return &pbAdmin.AdminListResp{
		Status: list["status"],
	}, nil
}
